from django.contrib import admin
from .models import *


# Register your models here.

@admin.register(AdminAccount)
class AdminAdminAccount(admin.ModelAdmin):
    list_per_page = 50
    search_fields = ['email', 'nickname']
    list_display = ['username', 'email', 'admin_type', 'active']
    list_filter = ['admin_type', 'active']


@admin.register(AdminGroup)
class AdminAdminGroup(admin.ModelAdmin):
    list_per_page = 20
    search_fields = ['group_name']
    list_display = ['group_name']


@admin.register(AuthType)
class AdminAuthType(admin.ModelAdmin):
    list_per_page = 50
    list_display = ['name']

